package cn.demo.text.editor.strategy.menu.action;

import java.util.HashMap;
import java.util.Map;

public class ActionFactory {

    public static final Map<String, Action> context = new HashMap<String, Action>();

    public static Action getAction(String actionName) {
        return context.get(actionName) == null ? new DefaultAction() : context.get(actionName);
    }
}
